package com.yugao.fintech.draper.multicache.support;

import com.yugao.fintech.draper.message.queue.support.broadcast.RedisBroadcastMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CacheMessage extends RedisBroadcastMessage implements Serializable {

	private static final long serialVersionUID = 3987211310442078199L;

	private String cacheName;

	private Object key;

	@Override
	public String getTopic() {
		return "cache.redis.caffeine.topic";
	}

}
